package com.tbit.uqbike.service.business;

import com.github.pagehelper.PageInfo;
import com.tbit.uqbike.object.pojo.Recharge;
import com.tbit.uqbike.object.pojo.UserRefundLog;
import com.tbit.uqbike.object.value.LoginInfo;
import com.tbit.uqbike.object.view.JsonResult;

import java.text.ParseException;
import java.util.List;

/**
 * 退款日志Service接口
 *
 * @author jing
 * @date 2021-05-26
 */
public interface UserRefundLogService {
    /**
     * 查询退款日志列表
     *
     * @param userRefundLog 退款日志
     * @return 退款日志集合
     */
    public PageInfo<UserRefundLog> selectUserRefundLogList(UserRefundLog userRefundLog);


    /**
     * @Description: 检测退款金额是否小于订单金额
     * @Param: [recharge]
     * @return: boolean
     * @Author: Jing
     * @Date: 2021/5/26
     */
    public String checkRefundMoney(Recharge recharge);

    /**
     * @Description: 检测用户金额
     * @Param: [recharge]
     * @return: boolean
     * @Author: Jing
     * @Date: 2021/5/26
     */
    public String checkUserMoney(Recharge recharge);

    /**
     * @Description: 申请退款
     * @Param: [recharge]
     * @return: boolean
     * @Author: Jing
     * @Date: 2021/5/26
     */
    public JsonResult apply(Recharge recharge, LoginInfo login) throws ParseException;
}
